package top.haijunit.work.modules.mall.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import top.haijunit.work.modules.mall.entity.CityEntity;

import java.util.List;

/**
 * @author zhanghaijun
 * @description 针对表【mall_city(城市表)】的数据库操作Mapper
 */
@Mapper
public interface CityMapper {

    @Select("select * from mall_city where parent_code = #{parentCode}")
    List<CityEntity> selectListByParent(@Param("parentCode") String parentCode);

    @Select("select * from mall_city")
    List<CityEntity> selectList();

}




